<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>{$title}</title>
    <link rel="stylesheet" type="text/css" href="//cdn.bilnn.top/js/aui/aui.2.0.css"/>
    <style>
        body{

        }
    </style>
</head>
<body>
<header class="aui-bar aui-bar-nav">
    <a class="aui-pull-left aui-btn" onclick="window.location.href='?c=game&a=duobao'">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title">{$title}</div>
</header>
    <div class="aui-tab" id="tab">
        <div class="aui-tab-item {if $state==''}aui-active{/if}" onclick="window.location.href='?c=game&a=duobao_log'">全部</div>
        <div class="aui-tab-item {if $state=='1'}aui-active{/if}" onclick="window.location.href='?c=game&a=duobao_log&state=1'">已中奖</div>
        <div class="aui-tab-item {if $state=='2'}aui-active{/if}" onclick="window.location.href='?c=game&a=duobao_log&state=2'">未中奖</div>
    </div>
    <div class="aui-content aui-margin-b-0" >
        <section class="aui-grid aui-margin-b-0">
            <ul class="aui-list aui-media-list">
                {foreach from=$log item=one}
                <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="aui-list-item-media" style="width: 3rem;">
                        <img src="/app{$one.gift_pic}" class="aui-img-round aui-list-img-sm">
                    </div>
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-text">
                            <div class="aui-list-item-title aui-font-size-14">{$one.gift_name}(￥{$one.gift_price})</div>
                            <div class="aui-list-item-right">{$one.ctime}</div>
                        </div>
                        <div class="aui-list-item-text">
                            第{$one.iid}期 号码：{$one.num} {if $one.state==0}<span class="aui-text-info">待开奖</span>{/if}{if $one.state==1}<span class="aui-text-danger">未中奖</span>{/if}{if $one.state==2}<span class="aui-text-success">已中奖</span>{/if}
                        </div>
                        {if $one.mark}
                        <div class="aui-list-item-text">
                            <p class="aui-ellipsis-2" style="font-size: 14px">{$one.mark}</p>
                        </div>
                        {/if}
                    </div>
                </div>
            </li>
                {/foreach}
            </ul>
            <h3><div class="aui-pager" style="margin-left:0rem;margin-right:0rem"></div></h3>
        </section>
    </div>
</div>
</body>
<script src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdn.bilnn.top/js/aui/aui-dialog.js"></script>
<script src="//cdn.bilnn.top/js/aui/aui-toast.js"></script>
<script src="View/js/fun.js"></script>
<script src="//cdn.bilnn.top/js/aui/jquery.pagination.js"></script>
<script>
    {if $pager}
    $('.aui-pager').pagination({
        totalData:{if $pager.total==0}1{else}{$pager.total}{/if},
        showData:{$pager.limit},
        current:{$pager.now},
        count:4,
        mode:'fixed',
        prevContent: '上页',
        nextContent: '下页',
        callback:function(e){
            var urls = window.location.href;
            if (urls.indexOf("page=")==-1){
                if (urls.indexOf("?")==-1){
                    urls = urls+"?page="+e.getCurrent();
                }else{
                    urls = urls+"&page="+e.getCurrent();
                }
            }else{
                urls = urls.split("page=");
                urls = urls[0];
                urls = urls+"page="+e.getCurrent();
            }
            window.location.href = urls;
        }
    });
    {/if}
</script>
</html>